package com.fmdj.bff.driver.service.impl;

import com.fmdj.bff.driver.controller.form.RemoveLocationCacheForm;
import com.fmdj.bff.driver.controller.form.UpdateLocationCacheForm;
import com.fmdj.bff.driver.controller.form.UpdateOrderLocationCacheForm;
import com.fmdj.bff.driver.feign.MapServiceApi;
import com.fmdj.bff.driver.service.DriverPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverPositionServiceImpl implements DriverPositionService {

    @Autowired
    private MapServiceApi mapServiceApi;
    @Override
    public void updatePositionCache(UpdateLocationCacheForm form) {
        mapServiceApi.updatePositionCache(form);
    }

    @Override
    public void removePositionCache(RemoveLocationCacheForm form) {
        mapServiceApi.removePositionCache(form);
    }

    @Override
    public void updateOrderPositionCache(UpdateOrderLocationCacheForm form) {
        mapServiceApi.updateOrderPositionCache(form);
    }
}
